package com.yc.study.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * 课程订阅表
 *
 * @author 王妍
 * @since 2022-03-13
 */
@Getter
@Setter
@TableName("student_course")
@ApiModel(value = "StudentCourse对象", description = "课程订阅表")
public class StudentCourse implements Serializable {

  private static final long serialVersionUID = 1L;

  @ApiModelProperty("主键")
  @TableId(value = "id", type = IdType.AUTO)
  private Long id;

  @ApiModelProperty("学生id")
  @TableField("student_id")
  private Long studentId;

  @ApiModelProperty("课程id")
  @TableField("course_id")
  private Long courseId;
}
